﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL;
using System.Data;
using System.Data.SqlClient;

namespace UI
{
    public partial class details : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string MaSP = Request.QueryString["MaSP"].ToString();

            SqlParameter[] ThamSo = new SqlParameter[]
            {
            new SqlParameter("MaSP",MaSP),
            };
            DataTable dt = DBConnection.GetDatatableByStoreProcedureName("sp_ChiTietSanPhamByMaSP", ThamSo);
            string a = "<div class=\"prod_details_tab\"><a href=\"themsanphamvaogio.aspx?MaSP=" + MaSP + "\"><img src=\"images/datmua_icon.jpg\" style=\"width: 171px; height: 25px\" /></a> </div> ";
            lblnhan.Text = a;
            lbltenSP.Text = dt.Rows[0]["TenSP"].ToString();
            lblbluetooth.Text = dt.Rows[0]["Bluetooth"].ToString();
            lblcameratruoc.Text = dt.Rows[0]["CameraTruoc"].ToString();
            lblcammerasau.Text = dt.Rows[0]["CameraSau"].ToString();
            lblchuan3g.Text = dt.Rows[0]["Chuan3G"].ToString();
            lblchuan4g.Text = dt.Rows[0]["Chuan4G"].ToString();
            lblcpu.Text = dt.Rows[0]["CPU"].ToString();
            lbldanflash.Text = dt.Rows[0]["DenFlash"].ToString();
            lbldungluongpin.Text = dt.Rows[0]["DungLuongPin"].ToString();
            lblfmradio.Text = dt.Rows[0]["FMRadio"].ToString();
            lblghiam.Text = dt.Rows[0]["GhiAm"].ToString();
            lblgia.Text = dt.Rows[0]["DonGia"].ToString();
            lblgprs.Text = dt.Rows[0]["GPRS"].ToString();
            lblgps.Text = dt.Rows[0]["GPS"].ToString();
            lblhDH.Text = dt.Rows[0]["HeDieuHanh"].ToString();
            lblheDH.Text = dt.Rows[0]["HeDieuHanh"].ToString();

            lbljacktai.Text = dt.Rows[0]["JackCamTaiNghe"].ToString();
            lblloaisim.Text = dt.Rows[0]["LoaiSim"].ToString();
            lblmanhinh.Text = dt.Rows[0]["ManHinh"].ToString();
            lblmhinh.Text = dt.Rows[0]["ManHinh"].ToString();
            lblnghenhac.Text = dt.Rows[0]["NgheNhac"].ToString();
            lblngonngu.Text = dt.Rows[0]["NgonNgu"].ToString();
            lblram.Text = dt.Rows[0]["Ram"].ToString();
            lblrom.Text = dt.Rows[0]["Rom"].ToString();
            lblrram.Text = dt.Rows[0]["Ram"].ToString();
            lblrrom.Text = dt.Rows[0]["Rom"].ToString();
            lblthenhongoai.Text = dt.Rows[0]["TheNhoNgoai"].ToString();
            lblwifi.Text = dt.Rows[0]["Wifi"].ToString();
            

        }
    }
}